<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>后台管理</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="icon" href="javascript:;">
  <link rel="stylesheet" href="../../resource/layui/css/layui.css"  media="all">
  <link rel="stylesheet" href="../../resource/myResource/css/no_read_item.css">
</head>
<style>
</style>
<body>
    <form class="layui-form" action="">
        <input type="hidden" id="id">
        <div class="layui-form-item" style="margin-top:25px">
            <div class="layui-inline" >
                <label class="layui-form-label" style="width:60px">姓名</label>
                <div class="layui-input-inline mydiv">
                    <label id="name" class="layui-form-label myvaluelable"></label>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label"style="width:70px">联系电话</label>
                <div class="layui-input-inline mydiv">
                    <label id="phone" class="layui-form-label myvaluelable"></label>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label" style="width:60px">注册时间</label>
                <div class="layui-input-inline mydiv">
                    <label id="addTime" class="layui-form-label myvaluelable"></label>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label"style="width:70px">维修次数</label>
                <div class="layui-input-inline mydiv">
                    <label id="time" class="layui-form-label myvaluelable"></label>
                </div>
            </div>
        </div>

        <div class="layui-form-item" >
            <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label" style="width:60px">工作范围:</label>
                <div class="layui-input-block" style="margin-left:90px;width:80%;text-align:left;">
                    <textarea id="worke" placeholder="无报修说明" class="layui-textarea" readonly style="resize: none;"></textarea>
                </div>
            </div>
        </div>
        
        <div class="layui-collapse" style="margin-left:20px;width:80%">
            <div class="layui-colla-item">
                <h2 class="layui-colla-title">
                    <li class="layui-nav-item" style="width:75px">
                        <a href="javascropt:;">维修记录</a>
                    </li>
                </h2>
                <div class="layui-colla-content layui-show" style="padding-top:0px">
                    <table class="layui-hide" id="repair_table" lay-filter="test" style="width:80%;"></table>                
                </div>
            </div>
        </div>

    </form>
    <script src="../../resource/jquery/dist/jquery.js"></script>
    <script src="../../resource/layui/layui.js" charset="utf-8"></script>
    <script src="../../resource/myResource/js/base.js"></script>
    <script src="../../resource/myResource/js/util/dictionary.js"></script>
    <script type="text/javascript">
        var id=GetQueryString("id");
        $.ajax({
            url:head+"/repairWorker/getWorker",
            dataType:"json",
            type:"POST",
            data:{"id":id},
            success:function(redata){
                layui.use(['form','table'], function(){
                    var util = layui.util;
                    var data = redata.data;
                    $("#name").text(data.name);
                    $("#phone").text(data.phone);
                    $("#addTime").text(util.toDateString(data.addTime*1,"yyyy-MM-dd HH:mm"));
                    $("#worke").text(data.work);
                    $("#time").text("维修"+data.time+"次");
                });
            }
        }); 
    </script>
    <script src="../../resource/myResource/js/worker/worker_history_list.js"></script>
    <script type="text/html" id="barDemo">
        <a class="layui-btn layui-btn-xs" lay-event="detail">详细</a>         
   <!-- <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a> -->
      </script>
    <!-- <script src="../../resource/myResource/js/worker/worker_list.js" charset="utf-8"></script> -->
   
</body> 
</html>